package org.example.sys.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.io.Serializable;
import java.util.Date;

/**
 * 角色目录权限表(TSysRoleMenu)表实体类
 * @author Calvin
 */
@Setter
@Getter
@ToString
@TableName("t_sys_role_menu")
public class TSysRoleMenu extends Model<TSysRoleMenu> implements Serializable {
    //主键id
    private Long id;
    //角色id
    private Long roleId;
     //菜单id
    private Long menuId;
    //是否删除, 0否, 1是
    private Integer deleted;
    //创建人
    private String createBy;
    //更新人
    private String updateBy;
    //创建时间
    private Date createTime;
    //修改时间
    private Date updateTime;

    public TSysRoleMenu() {}
    public TSysRoleMenu(Long roleId,Long menuId) {
        this.roleId = roleId;
        this.menuId = menuId;
    }

}

